package com.example.administrator.daydayappmarket.software.choice.model;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by lenovo on 2016/12/27.
 */

public class SoftwareChoicePicTopic extends SoftwareChoiceParent {

    private String topic_name;
    private String topic_title;
    private String title_color;
    private String image;
    private String id;
    public void parseJson(JSONObject jsonObject)throws JSONException{
        if (jsonObject != null) {
            theme_type=jsonObject.getString("theme_type");
            JSONObject jsonObject2=jsonObject.getJSONObject("data");
            topic_name=jsonObject2.getString("topic_name");
            topic_title=jsonObject2.getString("topic_title");
            title_color=jsonObject2.getString("title_color");
            image=jsonObject2.getString("image");
            JSONObject jsonObject1=jsonObject2.getJSONObject("data");
            id=jsonObject1.getString("id");
        }
    }

    public String getTopic_name() {
        return topic_name;
    }

    public String getTopic_title() {
        return topic_title;
    }

    public String getTitle_color() {
        return title_color;
    }

    public String getImage() {
        return image;
    }

    public String getId() {
        return id;
    }
}
